agents.anac.y2011.TheNegotiator
Class Pair<A,B>
java.lang.Object
agents.anac.y2011.TheNegotiator.Pair<A,B>
public class Pair<A,B>
- extends java.lang.Object
A simple tuple class.
- Author:
- Alex Dirkzwager, Mark Hendrikx, Julian de Ruiter
|
Constructor Summary |
Pair(A fst,
B snd)
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Pair
public Pair(A fst,
B snd)
getFirst
public A getFirst()
getSecond
public B getSecond()
setFirst
public void setFirst(A v)
setSecond
public void setSecond(B v)
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode in class java.lang.Object
of
public static <A,B> Pair<A,B> of(A a,
B b)